package Practice06.test4;

import java.util.Scanner;

public class ExceptionTest4 {

    public void sanjiao(int a, int b, int c){
        if (a+b<=c || a+c<=b || b+c<=a){
            try {
                throw new IllegalArgumentException(a+"   "+b+"   "+c+"不能构成三角形");
            } catch (IllegalArgumentException e) {
                throw new RuntimeException(e);
            }
        }
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

        //第一小题
        new ExceptionTest4().sanjiao(a,b,c);
        System.out.println(a+"   "+b+"   "+c);

        //第二小题
        Sanj sanj = new Sanj(a,b,c);
        System.out.println(sanj.getArea());
        System.out.println(sanj.showInfo());

    }
}
